/* 表入口文件模板 */

<?php
FLEA::loadClass('FLEA_Db_TableDataGateway');
class {{类名 （例如:Table_members）}} extends FLEA_Db_TableDataGateway
{
	var $tableName = '{{数据表名}}';
	var $primaryKey = '{{主键}}';
	var $hasMany = array(
		array(
			'tableClass'  => '',
			'foreignKey'  => '',
			'mappingName' => '',
			'sort'        => '',
		),
	);
    var $manyToMany = array(
    	array(
	        'tableClass'  => '',
	        'mappingName' => '',
    		'joinTableClass' => '',
            'foreignKey' => '',
            'assocForeignKey' => '',
    	),
    );
}
?>